﻿<%@ WebHandler Language="C#" Class="my_givelist02" %>

using System;
using System.Web;

public class my_givelist02 : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        string inman = context.Request["myuid"].ToString();
        string linkmanid = context.Request["linkmanid"].ToString();
        string opt = context.Request["opt"].ToString();
        string givelvl = context.Request["givelvl"].ToString();
        string givetype = context.Request["givetype"].ToString();
        string givemag = context.Request["givemag"].ToString();
        string giveqty = context.Request["giveqty"].ToString();
        string giveexpl = context.Request["giveexpl"].ToString();
        DateTime givebdate =Convert.ToDateTime(context.Request["givebdate"].ToString());
        DateTime giveedate = Convert.ToDateTime(context.Request["giveedate"].ToString());

        TLinkmanGive oGive = new TLinkmanGive(linkmanid);
        oGive.GiveLvl = givelvl;
        oGive.GiveType = givetype;
        oGive.GiveMag = givemag;
        oGive.GiveQty = Convert.ToInt32(giveqty);
        oGive.GiveBDate = givebdate;
        oGive.GiveEDate = giveedate;
        oGive.GiveExpl = giveexpl;
        oGive.Status = Convert.ToInt32(opt);
        oGive.InMan = inman;
        oGive.Update2();
        
        context.Response.ContentType = "text/plain";
        context.Response.Write("ok");
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}